/**
 * Created by linxin on 2017/3/11.
 */
export default {
  setUser: ({
    commit
  }, param) => commit('SET_USER', param),
  setRoles: ({
    commit
  }, roles) => commit('SET_ROLES', roles),
  clearAccout: ({
    commit
  }, param) => commit('CLEAR_ACCOUNT', {}),
  setAuthorId: ({
    commit
  }, id) => commit('SET_AUTHOR_ID', id),
}
